﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace AlarmModule.Models {
    /// <summary>
    /// 报警数据模型
    /// </summary>
    [Table("AlarmModel")]
    public partial class AlarmModel : ObservableObject {

        /// <summary>
        /// Id
        /// </summary>.
        [Key]
        [ObservableProperty]
        private int _id;
        

        /// <summary>
        /// 编号
        /// </summary>
        [ObservableProperty]
        private string? _num;

        /// <summary>
        /// 报警信息
        /// </summary>
        /// 
        [ObservableProperty]
        private string? _msg;

        /// <summary>
        /// 报警时间
        /// </summary>
        /// 
        [ObservableProperty]
        private DateTime? _time;


        /// <summary>
        /// 报警时长 单位:秒
        /// </summary>
        /// 
        [ObservableProperty]
        private int? _duration;
    }
}
